conf = require("../config")
if not conf.rainbow.enabled then return {} end

return {
  "HiPhish/rainbow-delimiters.nvim",
  version="*",
  event = "UIEnter",
  dependencies = {
    {"nvim-treesitter/nvim-treesitter"},
  },
  config = function ()
    -- This module contains a number of default definitions
    local rainbow_delimiters = require 'rainbow-delimiters'

    ---@type rainbow_delimiters.config
    vim.g.rainbow_delimiters = {
      strategy = {
        [''] = rainbow_delimiters.strategy['global'],
      },
      -- query = {
      --   [''] = 'rainbow-delimiters',
      --   lua = 'rainbow-blocks',
      -- },
      priority = {
        [''] = 110,
        lua = 210
      },
      -- highlight = {
      --   'RainbowDelimiterRed',
      --   'RainbowDelimiterYellow',
      --   'RainbowDelimiterBlue',
      --   'RainbowDelimiterOrange',
      --   'RainbowDelimiterGreen',
      --   'RainbowDelimiterViolet',
      --   'RainbowDelimiterCyan',
      -- },
    }
  end
}
